package com.wwj.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "cmfz_user")
public class CmfzUser implements Serializable {
    public static final String COL_USER_ID = "user_id";
    public static final String COL_USER_TELPHONE = "user_telphone";
    public static final String COL_USER_PASSWORD = "user_password";
    public static final String COL_USER_IMAGE = "user_image";
    public static final String COL_USER_NICKNAME = "user_nickname";
    public static final String COL_USER_NAME = "user_name";
    public static final String COL_USER_SEX = "user_sex";
    public static final String COL_USER_AUTOGRAPH = "user_autograph";
    public static final String COL_USER_PROVINCE = "user_province";
    public static final String COL_USER_CITY = "user_city";
    public static final String COL_GURU_ID = "guru_id";
    public static final String COL_USER_STATUS = "user_status";
    public static final String COL_USER_CREATE_DATE = "user_create_date";
    @TableId(value = "user_id", type = IdType.AUTO)
    private int userId;
    @TableField(value = "user_telphone")
    private String userTelphone;
    @TableField(value = "user_password")
    private String userPassword;
    @TableField(value = "user_image")
    private String userImage;
    @TableField(value = "user_nickname")
    private String userNickname;
    @TableField(value = "user_name")
    private String userName;
    @TableField(value = "user_sex")
    private String userSex;
    /**
     * 个性签名
     */
    @TableField(value = "user_autograph")
    private String userAutograph;
    @TableField(value = "user_province")
    private String userProvince;
    @TableField(value = "user_city")
    private String userCity;
    @TableField(value = "guru_id")
    private Integer guruId;
    @TableField(value = "user_status")
    private Integer userStatus;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @TableField(value = "user_create_date")
    private Date userCreateDate;
}